package com.linwen.excise.niuke._20;

import java.util.*;
import java.util.stream.Collectors;

/**
 * @author wlw
 * @date 2023/3/1 10:10 PM
 */
public class _3明明的随机数 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = scanner.nextInt();
        }
        Set<Integer> integers = new TreeSet<>();
        for (int i = 0; i < n; i++) {
            integers.add(arr[i]);
        }
        for (Integer integer : integers) {
            System.out.println(integer);
        }
    }
}
